package org.pz.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/gateway")
public class GatewayController {


    @RequestMapping("/log")
    public String log(@RequestParam String param, @RequestParam String param2) {
        log.info("param:{}, param2:{}", param, param2);
        return param + param2;
    }

    @RequestMapping("/limit")
    public String limit() {
        log.info("限流接口测试");
        return "limit";
    }
}
